{template "header.html"}

<div class="page-wrapper-row full-height">
    <div class="page-wrapper-middle">
        <div class="page-head">
            <div class="container">
                <div class="page-title">
                   这里是{MODULE_NAME}模块栏目内容页
                </div>
            </div>
        </div>
        <div class="page-content">

            <div class="container">

                <ul class="page-breadcrumb breadcrumb">
                    <li>
                        <a href="{SITE_URL}">网站首页</a>
                        <i class="fa fa-circle"></i>
                    </li>
                    {if !IS_SHARE}
                    <li>
                        <a href="{MODULE_URL}">{MODULE_NAME}</a>
                        <i class="fa fa-circle"></i>
                    </li>
                    {/if}
                    {dr_catpos($catid, '', true, '<li> <a href="[url]">[name]</a> <i class="fa fa-circle"></i> </li>')}
                    <li>
                        <span>{$title}</span>
                    </li>
                </ul>

                <div class="search-page search-content-2">
                    <div class="row">
                        <div class="col-md-8">

                            <div class="portlet light">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <span class="caption-subject font-dark  ">{$title}</span>
                                    </div>
                                    <div class="actions">
                                        <a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;" data-original-title="" title="全屏查看"> </a>
                                    </div>
                                </div>
                                <div class="search-post-foot fc-content-tool">
                                    <div class="search-post-meta">
                                        <i class="fa fa-user font-blue"></i>
                                        <a href="javascript:;">{$author}</a>
                                    </div>
                                    <div class="search-post-meta">
                                        <i class="fa fa-calendar font-blue"></i>
                                        <a href="javascript:;">{$updatetime}</a>
                                    </div>
                                    <div class="search-post-meta">
                                        <i class="fa fa-eye font-blue"></i>
                                        <a href="javascript:;">{dr_show_hits($id)}次</a>
                                    </div>
                                    {if dr_is_app('comment')}
                                    <div class="search-post-meta">
                                        <i class="fa fa-comments font-blue"></i>
                                        <a href="{Router::comment_url($id)}">{$comments}</a>
                                    </div>
                                    {/if}
                                </div>
                                <div class="portlet-body" style="height: auto;overflow: hidden;">
                                    <div class="row">
                                        <div class="col-md-12">
                                            {$content}
                                        </div>
                                        <div class="col-md-12">
                                            <div class="blog-single-foot fc-news-tag-list">
                                                <ul class="blog-post-tags">
                                                    {loop $tags $name $url}
                                                    <li class="uppercase">
                                                        <a href="{$url}" target="_blank">{$name}</a>
                                                    </li>
                                                    {/loop}
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row fc-show-total">
                                        <div class="col-md-12 text-center">
                                            <a href="javascript:dr_module_favorite('{MOD_DIR}', '{$id}');" class="icon-btn">
                                                <i class="fa fa-star"></i>
                                                <div> 收藏 </div>
                                                <span class="badge badge-danger" id="module_favorite_{$id}"> {intval($favorites)} </span>
                                            </a>
                                            <a href="javascript:dr_module_digg('{MOD_DIR}', '{$id}', 1);" class="icon-btn">
                                                <i class="fa fa-thumbs-o-up"></i>
                                                <div> 有帮助 </div>
                                                <span class="badge badge-danger" id="module_digg_{$id}_1"> {intval($support)} </span>
                                            </a>
                                            <a href="javascript:dr_module_digg('{MOD_DIR}', '{$id}', 0);" class="icon-btn">
                                                <i class="fa fa-thumbs-o-down"></i>
                                                <div> 没帮助 </div>
                                                <span class="badge badge-danger" id="module_digg_{$id}_0"> {intval($oppose)} </span>
                                            </a>
                                            {if dr_is_app('shang')}
                                            <a href="{Router::donation_url($id)}" class="icon-btn">
                                                <i class="fa fa-rmb"></i>
                                                <div> 打赏 </div>
                                                <span class="badge badge-danger"> {floatval($donation)} </span>
                                            </a>
                                            {/if}
                                        </div>
                                    </div>
                                </div>

                                <div class="blog-single-foot">
                                    <p class="fc-show-prev-next">
                                        <strong>上一篇：</strong>{if $prev_page}<a href="{$prev_page.url}">{$prev_page.title}</a>{else}没有了{/if}<br>
                                    </p>
                                    <p class="fc-show-prev-next">
                                        <strong>下一篇：</strong>{if $next_page}<a href="{$next_page.url}">{$next_page.title}</a>{else}没有了{/if}
                                    </p>
                                </div>

                                <!--调用ajax评论-->
                                {if IS_COMMENT}
                                {dr_module_comment(MOD_DIR, $id)}
                                {/if}
                            </div>


                        </div>
                        <div class="col-md-4">
                            <!-- BEGIN PORTLET-->
                            <div class="portlet light ">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <span class="caption-subject font-dark bold uppercase">栏目索引</span>
                                    </div>

                                </div>
                                <div class="portlet-body">
                                    <div class="todo-project-list">
                                        <ul class="nav nav-stacked">
                                            <!--循环输出当前栏目的同级栏目，定义返回值return=c-->
                                            {php $a = array('badge-info', 'badge-success', 'badge-default', 'badge-danger');}
                                            {category module=MOD_DIR pid=$cat.pid return=c}
                                            <li {if $c.id==$catid} class="active"{/if}><a href="{$c.url}"><span class="badge {$a[array_rand($a)]}"> {$c.total} </span>{$c.name}</a></li>
                                            {/category}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="portlet light ">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <span class="caption-subject font-dark bold uppercase">相关内容</span>
                                    </div>

                                </div>
                                <div class="portlet-body">
                                    <div class="todo-project-list">
                                        <ul class="nav nav-stacked">
                                            <!--此标签用于调用相关文章，tag=关键词1,关键词2，多个关键词,分隔，num=显示条数，field=显示字段-->
                                            {related module=MOD_DIR tag=$tag num=5}
                                            <li>
                                                <a href="{$t.url}" title="{$t.title}">
                                                <span class="badge fc-icon-left {$a[array_rand($a)]}"> {$key+1} </span>
                                                {dr_strcut($t.title, 20)}</a>
                                            </li>
                                            {/related}
                                        </ul>
                                    </div>
                                </div>
                            </div>


                        </div>
                    </div>
                </div>

            </div>

        </div>
    </div>
</div>

{template "footer.html"}